<ul id="main_menu">
	<li id="yp_logo">
		<a href="javascript:void(0);"><img src="gui/yp_hand.gif" alt="" /></a>
		<ul>
			<li><a href="javascript:void(0)" onclick="showAboutYP();">O firmi...</a></li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0);">Administracija</a>
		<ul class="large">
			<li class="sub">
				<a href="javascript:void(0);">Korisnik</a>
				<ul>
					<li style="background:url(gui/icons/users/{{$user_level}}.gif) no-repeat right center;">
						<span title="{{$user_level}}&nbsp;-&nbsp;{{$user_last_login}}">{{$user_ime}}&nbsp;{{$user_prezime}}</span>
					</li>
					<li class="separator">&nbsp;</li>
					<li><a class="new" href="javascript:void(0)" onclick="LoadRSDoc('user.php?a=new','setContent')">Novi...</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('user.php?a=changePass','ypAjaxForm')">Promeni lozinku</a></li>
					<li><a href="javascript:void(0)" onclick="logout();">logout</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)">Kategorije/Delatnosti</a>
				<ul>
					<li class="sub">
						<a href="javascript:void(0);" onclick="LoadRSDoc('delatnosti.php','setContent');">Delatnosti</a>
						<ul>
							<li><a href="javascript:void(0);" onclick="LoadRSDoc('delatnosti.php?a=inherit','setContent')">Naseleđivanje</a></li>
							<li><a href="javascript:void(0);" onclick="LoadRSDoc('delatnosti.php?a=family','setContent')">Srodne delatnosti</a></li>
						</ul>
					</li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('delatnosti.php?a=kategorije','setContent');">Kategorije</a><li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)" onclick="LoadRSDoc('artikli.php?a=artikli','setContent');">Artikli</a>
				<ul>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('artikli.php?a=artikli','setContent');">Pregled</a></li>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('artikli.php?a=artikli_grupe','setContent');">Grupe artikala</a></li>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('artikli.php?a=artikli_tipovi','setContent');">Tipovi artikala</a></li>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('artikli.php?a=artikli_boje','setContent');">Boje artikala</a></li>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('artikli.php?a=artikli_paketi','setContent');">Paketi artikala</a></li>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('artikli.php?a=profili_paketi','setContent');">Paketi profila</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)">Ugovori</a>
				<ul>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori?a=admin&mod=dopistype','setContent')">Tipovi dopisa</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori?a=admin&mod=dopisishod','setContent')">Ishodi dopisa</a></li>
				</ul>
			</li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('brands.php','setContent')">Brendovi</a></li>
			<li class="sub">
				<a href="javascript:void(0)" onclick="LoadRSDoc('banke.php?a=show','setContent');">Banke</a>
				<ul>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('banke.php?a=show','setContent');">Pregled</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)" onclick="LoadRSDoc('porezi.php?a=show','setContent');">Porezi</a>
				<ul>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('porezi.php?a=show','setContent');">Pregled</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)" onclick="LoadRSDoc('jedinice_mere.php','setContent');">Jedinice Mere</a>
				<ul>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('jedinice_mere.php','setContent');">Pregled</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0);" onclick="LoadRSDoc('cenovnik.php','setContent')">Cene</a>
				<ul>
					<li><a href="javascript:void(0)" onclick="novaCena();" class="new">Nova</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('cenovnik.php','setContent')">Administracija</a></li>
					<li class="separator">&nbsp;</li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('cenovnik.php?a=cenovnici','setContent')">Cenovnici</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0);">Geopolitičke grupacije</a>
				<ul>
					<li class="sub">
						<a href="javascript:void(0)" onclick="LoadRSDoc('geos.php?a=ulice','setContent')">Ulice</a>
						<ul>
							<li><a href="javascript:void(0)" onclick="LoadRSDoc('geos.php?a=ulice_lokacije','setContent')">Pripadnost lokaciji</a></li>
						</ul>
					</li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('geos.php?a=regioni','setContent')">Regioni</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('geos.php?a=opstine','setContent')">Opštine</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('geos.php?a=lokacije','setContent')">Lokacije</a></li>
				</ul>
			</li>
			<li class="separator"></li>
			{{$super_user_start}}<li><a href="javascript:void(0);" onclick="LoadRSDoc('logs.php','setContent');">Registar akcija u bazi</a></li>{{$super_user_end}}
			<li><a href="evidencija.php">Evidencija dolazaka</a></li>
			<li class="sub">
				<a href="javascript:void(0)" onclick="LoadRSDoc('putni_nalozi.php','setContent')">Putni nalozi</a>
				<ul>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('putni_nalozi.php','setContent')">Izdavanje</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('putni_nalozi.php?a=displayEnter','setContent')">Ulaz</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('putni_nalozi.php?a=report','setContent')">Izveštaj</a></li>
				</ul>
			</li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0);">Komitenti</a>
		<ul>
			<li><a class="new" href="javascript:void(0);" onclick="LoadRSDoc('komitenti.php?a=new','setContent')">Novi...</a></li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php','setContent')">Pregled</a></li>
			<li class="sub">
				<a class="search" href="javascript:void(0)">Pretraga</a>
				<ul>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onsubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'pib',k.value)}else{k.focus();k.select()}">
							<label for="search_name">PIB / MBR:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onsubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'ime',k.value)}else{k.focus();k.select()}">
							<label for="search_name">Naziv:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onsubmit="var k=this.search_sifra; if(k.value.length){searchKomitent(this,'sifra',k.value)}else{k.focus();k.select()}">
							<label for="search_sifra">Šifra:</label><input name="search_sifra" id="search_sifra" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onsubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'adresa',k.value)}else{k.focus();k.select()}">
							<label for="search_name">Adresa:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onsubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'kontakt',k.value)}else{k.focus();k.select()}">
							<label for="search_name">Kontakt:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onsubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'zr',k.value)}else{k.focus();k.select()}">
							<label for="search_name">ŽR:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onsubmit="var k=this.search_name; if(k.value.length>2){searchKomitent(this,'keyword',k.value)}else{k.focus();k.select()}">
							<label for="search_name">Reč:</label>
							<input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=search&t=viewStatus','setContent');">Po statusu prikaza...</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=search','setContent')">Napredna pretraga...</a></li>
				</ul>
			</li>
			<li><a id="preporuke_menu" href="javascript:void(0)" onclick="LoadRSDoc('preporuke.php','setContent')">Preporuke</a></li>
			<li class="separator"></li>
			<li class="sub">
				<a href="javascript:void(0)">Tipovi</a>
				<ul>
					<li><a class="new" href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=newType&t=type','setContent')">Novi...</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=types','setContent')">Administracija</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)">Strukture</a>
				<ul>
					<li><a class="new" href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=newType&t=struct','setContent')">Novi...</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=struct','setContent')">Administracija</a></li>
				</ul>
			</li>
			<li class="separator"></li>
			<li class="sub">
				<a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=listing','setContent')">Listing delatnosti</a>
				<ul>
					<li><a href="javascript:void(0)" onclick="showListingSettings('setContent')">Podešavanja</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=listing&mod=bind','setContent')">Spajanje</a></li>
				</ul>
			</li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=listingBusiness','setContent')">Business pages</a></li>
			<li class="separator"></li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('upload.php','setContent')">Upload</a></li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=yapfox','setContent');">YAP-FOX</a></li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('komitenti.php?a=yapyap','setContent');">Srodni komitenti</a></li>
			<!--<li><a href="javascript:void(0)">Bez ugovora</a></li>
			<li><a href="javascript:void(0)">Sa ugovorom</a></li>-->
		</ul>
	</li>
	<li>
		<a href="javascript:void(0)">Ugovori</a>
		<ul>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=new','setContent')" class="new">Novi</a></li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=pregled','setContent')">Pregled</a></li>
			<li class="sub"> <a href="javascript:void(0)">Izvodi</a>
					<ul>
						<li><a href="javascript:void(0)" onclick="LoadRSDoc('izvodi.php','setContent')">Uvezi</a></li>
						<li class="separator">&nbsp;</li>
						<li><a href="javascript:void(0)" onclick="LoadRSDoc('izvodi.php?a=uplate','setContent')">Uplate</a></li>
					</ul>
			</li>
			<li class="sub"> <a href="javascript:void(0);">Fakture</a>
					<ul>
						<li><a href="javascript:void(0);" onclick="LoadRSDoc('ugovori?a=fakture&mod=import','setContent')">Uvoz</a></li>
						<li><a href="javascript:void(0);">Izvoz</a></li>
					</ul>
			</li>
			<li>
				<a href="javascript:void(0)" class="alarm" onclick="LoadRSDoc('ugovori.php?a=alarms','setContent')">Alarmi</a>
			</li>
			<li class="separator"></li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('predracun.php','setContent')">Predračuni</a></li>
			<li class="separator"></li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=izdaj','setContent')">Izdavanje</a></li>
			<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=razduzi','setContent')">Razduženje</a></li>
			<li class="sub">
				<a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=ulaz','setContent')">Ulaz</a>
				<ul>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=ulaz','setContent')">Ugovora</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=ulaz_mat','setContent')">Materijala</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)">Izveštaji</a>
				<ul>
					<li>
						<input type="button" value=" " title="Izvezi ulaz/izlaz izveštaj..." style="padding-left:10px; margin-bottom:-7px; float:right; position:relative" class="excel" onclick="location.href='ugovori.php?a=report&t=6'" />
						<a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=report&t=1','setContent')">Izdati ugovori</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=report&t=2','setContent')">Ušli ugovori</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=report&t=21','setContent')">Vraćeni ugovori</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=report&t=7','setContent')">Razduženi ugovori</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=report&t=5','setContent')">Ušli materijali</a></li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" action="javascript:void(0)" onsubmit="var rep = this.report_radnik_name; if(rep.value.length){LoadRSDoc('ugovori.php?a=report&t=3&radnik='+rep.value,'ypAjaxForm');}else{rep.focus();} " method="get">
							<label for="report_radnik_name">Radnik:</label>
							<input type="text" name="report_radnik_name" />
							<input type="submit" value="go" class="submit" />
						</form>
					</li>
					<li class="separator"></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=real_report&mod=stat','setContent')">Statistički</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=real_report&mod=editor','setContent')">Redakcija</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=real_report&mod=book','setContent')">Za knjigu...</a></li>
					<li class="sub">
						<a href="javascript:void(0)">Dužnici</a>
						<ul>
							<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=real_report&mod=debt','setContent')">Zaključeni / Naplaćeni</a></li>
							<li><a href="javascript:void(0)" onclick="LoadRSDoc('ugovori.php?a=real_report&mod=debt&rep=dugovanja','setContent')">Dugovanja</a></li>
						</ul>
					</li>
				</ul>
			</li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0)">Radnici</a>
		<ul>
			<li><a class="new" href="javascript:void(0);" onclick="LoadRSDoc('radnici.php?a=new','setContent')">Novi...</a></li>
			<li><a href="javascript:void(0);" onclick="LoadRSDoc('radnici.php','setContent');">Administracija</a></li>
			<li><a href="javascript:void(0);" onclick="LoadRSDoc('radnici.php?a=alarms','setContent');" class="alarm">Alarmi</a></li>
			<li class="separator">&nbsp;</li>
			<li><a href="javascript:void(0);" onclick="LoadRSDoc('radnici_grupe.php','setContent');">Grupe</a></li>
			<li><a href="javascript:void(0);" onclick="LoadRSDoc('radnici_radni_odnos.php','setContent');">Radni odnosi</a></li>
			<li><a href="javascript:void(0);" onclick="LoadRSDoc('radnici_sprema.php','setContent');">Sprema</a></li>
			<li><a href="javascript:void(0);" onclick="LoadRSDoc('radnici_tipovi.php','setContent');">Tipovi radnika</a></li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0);">Rokovnik</a>
		<ul>
			<li class="sub">
				<a href="javascript:void(0);" onclick="LoadRSDoc('rokovnik.php','setContent')">Telemarketing</a>
				<ul>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('rokovnik.php?a=adminCalls','setContent')">Današnj pozivi...</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('rokovnik.php?a=report&t=tm','setContent')">Izveštaj</a>					</li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0);" onclick="LoadRSDoc('rokovnik.php?a=manager','setContent')">Menadžer</a>
				<ul>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('rokovnik.php?a=adminMeetings','setContent')">Administracija sastanaka</a></li>
					<li><a href="javascript:void(0);" onclick="LoadRSDoc('rokovnik.php?a=adminMeetings&mod=browseMeetingTickets','setContent')">Listići za sastanke</a></li>
					<li class="sub">
						<a href="javascript:void(0)" onclick="LoadRSDoc('rokovnik.php?a=report&t=man','setContent')">Izveštaj</a>
						<ul>
							<li><a href="javascript:void(0)" onclick="LoadRSDoc('rokovnik.php?a=report&t=man','setContent')">Menadžer</a></li>
							<li><a href="javascript:void(0)" onclick="LoadRSDoc('rokovnik.php?a=report&t=tm1','setContent')">Telemarketing [zakazani]</a></li>
						</ul>
					</li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)" onclick="LoadRSDoc('rokovnik.php?a=kom','setContent')">Komercijalista</a>
				<ul>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('rokovnik.php?a=kom&mod=contact','setContent')">Kontakti</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('rokovnik.php?a=report&t=kom','setContent')">Izveštaj</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)">Distribucija</a>
				<ul>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('rokovnik.php?a=distrib&mod=teritory','setContent')">Teritorije</a></li>
				</ul>
			</li>
			<li class="sub">
				<a href="javascript:void(0)" onclick="LoadRSDoc('duznici.php','setContent')">Dužnici</a>
				<ul>
                	<li><a href="javascript:void(0)" onclick="LoadRSDoc('duznici.php?a=calls','setContent')">Administracija poziva</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('duznici.php?a=report','setContent')">Izveštaj</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('duznici.php?a=monthreport','setContent')">Lista po mesecu...</a></li>
					<li><a href="javascript:void(0)" onclick="LoadRSDoc('duznici.php?a=pozivaoci','setContent')">Izveštaj pozivaoci</a></li>
				</ul>
			</li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0)">Opcije</a>
		<ul>
			{{$options}}
			<li><a href="javascript:void(0);" onclick="window.print();">Štampaj...</a></li>
		</ul>
	</li>
	<li id="history_nav">
		<input type="button" id="history_back" onclick="historyBack()" value="<<" title="nazad" disabled="disabled" />
		<input type="button" onclick="historyShow()" value="history" style="display:none;" />
		<input type="button" id="history_forward" onclick="historyForward()" value=">>" title="napred" disabled="disabled" />
	</li>
</ul>
